<div class="am-u-sm-12 widget main-w">
	<ol class="am-breadcrumb">
		<li>
			<a href="{:url('/admin/index')}">首页</a>
		</li>
		<li>
			<a href="{:url('index')}">业务管理</a>
		</li>
		<li class="am-active">车辆统计</li>
	</ol>
	<div class="am-u-sm-12 cl-p">
		<div class="am-u-sm-12 cl-p">
			<form class="am-form-inline tpl-form-border-form" action="" method="get">
				<div class="am-u-sm-12 cl-p">
					<div class="am-u-sm-3 ">
						<div class="am-u-sm-5 cl-p">
							<select class="driverstat" style="height: 33px;">
								<option value="1">车牌号</option>
								<option value="2">公司名称</option>
							</select>
						</div>
						<div class="am-u-sm-7 am-form-group cl-p">
							<input type="text" name="number" class="number am-form-field car_number" value="{$Think.get.number}"  readonly=""/>
							<input type="hidden" class="company car_rental am-form-field" value="{$Think.get.company}"  readonly=""/>
						</div>
					</div>
					<!--<div class="am-u-sm-3 ">
						<div class="am-u-sm-12 cl-p">
							
							<select class="car_type" name="car_type_id" style="height: 33px;">
								{car_type_ids}
							</select>
						</div>
					</div>-->
					<div class="am-u-sm-9 ">
						<button type="submit" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">查询<i class="am-icon-search"></i></button>
					</div>
				</div>
				<!--<div class="am-u-sm-12 timeclassify" style="margin-top: 10px;">
					<input type="hidden" name="time" class="time" />
					<a href="{:url('stat')}" class="am-btn am-radius am-btn-sm {$Think.get.time!=month&&$Think.get.time!=year&&$Think.get.time!=day?'am-btn-success':'am-btn-primary'} year" style="margin-top: -2px;">全部</a>
					<button type="submit" data-val='day' class="am-btn {$Think.get.time==day?'am-btn-success':'am-btn-primary'} am-btn-sm am-radius day" style="margin-top: -2px;">今日</button>
					<button type="submit" data-val='month' class="am-btn am-btn-sm {$Think.get.time==month?'am-btn-success':'am-btn-primary'} am-radius month" style="margin-top: -2px;">本月</button>
					<button type="submit" data-val='year' class="am-btn am-radius am-btn-sm {$Think.get.time==year?'am-btn-success':'am-btn-primary'} year" style="margin-top: -2px;">今年</button>
				</div>-->
			</form>
		</div>
		<div class="am-u-sm-12  cl-p">
			<fieldset style="margin:30px 0 0 0;">
				<legend style="margin:30px 0 0 0;color: #838FA1;font-weight: 900;">车辆统计<span><small class="time" style="color: #aaa;"></small></span></legend>
				<div class="am-u-sm-12 cl-p">
					<div class="am-g cl-p">
						<div class="am-u-sm-6 ">
							<div class="am-u-sm-12 cl-p blockdiv-top">
								<div class="am-u-sm-12 widget-head ">车辆总数量</div>
								<div class="am-u-sm-6">
									<div class="am-u-sm-12"><small>车辆数量</small> {if $Think.get.number}
										<span class="bold-font">-</span> {else/}
										<span class="bold-font">{$item.all}</span>
										<small>辆</small> {/if}
									</div>
									<div class="am-u-sm-12"><small>关联车辆</small> {if $Think.get.number}
										<span class="bold-font">-</span> {else/}
										<span class="bold-font">{$item.bind}</span>
										<small>辆</small> {/if}
									</div>
									<div class="am-u-sm-12"><small>未关联车辆</small> {if $Think.get.number}
										<span class="bold-font">-</span> {else/}
										<span class="bold-font">{$item.all-$item.bind}</span>
										<small>辆</small> {/if}
									</div>
								</div>
								<div class="am-u-sm-6">
									{if $Think.get.number}
									<div>暂无数据</div>
									{else/}
									<div id="car_number" style="height: 150px;margin-top: 20px;">

									</div>

									{/if}
								</div>
							</div>
						</div>
						<div class="am-u-sm-6">
							<div class="am-u-sm-12 cl-p blockdiv-top">
								<div class="am-u-sm-12 widget-head ">百公里总油耗 </div>
								<div class="am-u-sm-12">
									<div class="am-u-sm-12"><small>百公里耗油量</small><span class="bold-font">{if $item.wear}{if is_nan($item.wear)}0{else/}{$item.wear}{/if}{else/}0{/if}</span><small>升</small></div>
									<div class="am-u-sm-12"><small>百公里耗油花费</small><span class="bold-font">{if $item.cost}{if is_nan($item.cost)}0{else/}{$item.cost}{/if}{else/}0{/if}</span><small>元</small></div>
								</div>
								<!--<div class="am-u-sm-7">
									<div id="fuelconsumption" style="height: 150px;margin-top: 20px;">
									</div>
								</div>-->
							</div>
						</div>
					</div>
					<div class=" cl-p outline am-g" data-number="{$Think.get.number}" data-company='{$Think.get.company}'>
						<div class="am-u-sm-6 am-u-md-6 am-u-lg-3">
							<div class="am-u-sm-12 cl-p blockdiv" style="height: 180px;">
								<div class="am-u-sm-12 widget-head ">维保<small class="am-fr"><a class="service">查看详情</a></small></div>
								<div class="am-u-sm-12 ">
									<div class="am-u-sm-12 cl-p"><small>维保花费</small></div>
									<div class="am-u-sm-12 cl-p"><span class="bold-font">{$item.service_amount}</span><small>元</small></div>
									<div class="am-u-sm-12 cl-p"><small>维保次数</small><span class="bold-font">{$item.service_times}</span><small>次</small></div>
								</div>

							</div>
						</div>
						<div class="am-u-sm-6 am-u-md-6 am-u-lg-3">
							<div class="am-u-sm-12 cl-p blockdiv" style="height: 180px;">
								<div class="am-u-sm-12 widget-head">年检 <small class="am-fr"><a class="survey">查看详情</a></small></div>
								<div class="am-u-sm-12  ">
									<!--<div class="am-u-sm-12 am-text-truncate"><small>年检时间</small><span class="bold-font">
									{if $Think.get.number}
									2017-01-02
									{else/}
									-
									{/if}</span>
								</div>-->
									<div class="am-u-sm-12 cl-p"><small>年检花费</small></div>
									<div class="am-u-sm-12 cl-p"><span class="bold-font">{$item.refuel}</span><small>元</small></div>
								</div>
							</div>
						</div>
						<div class="am-u-sm-6 am-u-md-6 am-u-lg-3">
							<div class="am-u-sm-12 cl-p blockdiv" style="height: 180px;">
								<div class="am-u-sm-12 widget-head ">加油 <small class="am-fr"><a class="refuel">查看详情</a></small></div>
								<div class="am-u-sm-12 ">
									<div class="am-u-sm-12 cl-p"><small>加油花费</small></div>
									<div class="am-u-sm-12 cl-p"><span class="bold-font">{$item.amount}</span><small>元</small></div>
									<div class="am-u-sm-12 cl-p"><small>加油次数</small><span class="bold-font">{$item.refuel}</span><small>次</small></div>
								</div>
							</div>
						</div>
						<div class="am-u-sm-6 am-u-md-6 am-u-lg-3">
							<div class="am-u-sm-12 cl-p blockdiv" style="height: 180px;">
								<div class="am-u-sm-12 widget-head ">保险 <small class="am-fr"><a class="insure">查看详情</a></small></div>
								<div class="am-u-sm-12 ">
									<!--<div class="am-u-sm-12 am-text-truncate"><small>保险时间</small><span class="bold-font">
									{if $Think.get.number}
									2017-01-02
									{else/}
									-
									{/if}</span>
								</div>-->
									<div class="am-u-sm-12 cl-p"><small>保险花费</small></div>
									<div class="am-u-sm-12 cl-p"><span class="bold-font">{$item.insure}</span><small>元</small></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</fieldset>
		</div>
	</div>
</div>